package com.dyz.leetcode._04_bitOperation;

public class _201_rangeBitwiseAnd {
    //超时
    public int rangeBitwiseAnd(int left, int right) {
        int res = left;
        for(int i = left+1; i<=right; i++){
            res = res & i;
        }
        return res;
    }

}
